<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>userInfo.jsp</title>
<link href="../css/mq.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="contentMain">
	<h4>用户订单列表</h4>
	<table width="100%" border="0" cellspacing="1" cellpadding="2" class="TableStyle">
	  <tr class="TrTitleBg-2">
	    <td>管理员名称</td>
	    <td>订购时间</td>
	    <td>套餐ID</td>
	    <td>订单类型</td>
	    <td>支付状态</td>
	    <td>生效时间</td>
	    <td>是否使用</td>
	    <td>支付宝ID</td>
	    <td>定位码</td>
	    <td>操作</td>
	  </tr>
	  <s:iterator value="ordersList">
	  <tr class="TrWhiteBg">
	  <td><s:property value="adminUserName"/></td>
      <td><s:property value="orderTime"/></td>
      <td><s:property value="chargeId"/></td>
      <td><s:if test="orderType==1">个人
      </s:if><s:elseif test="orderType==2">渠道</s:elseif>
      <s:elseif test="orderType==3">总代</s:elseif></td>
      <td><s:if test="payState==1">已付</s:if><s:else>未付</s:else></td>
      <td><s:property value="effectTime"/></td>
      <td><s:if test="isUse==1">是</s:if><s:else>否</s:else></td>
      <td><s:property value="alipayId"/></td>
      <td><s:property value="code"/></td>
	    <td><a href="orderInfo.do?id=<s:property value="id"/>">查看</a></td>
	  </tr>
	  </s:iterator>
	</table>
  <div align="right" class="text_margin">
  [ <a href="orderList.do?pageNum=1">首页</a> |
     <s:if test="pageNum<=1">上一页</s:if><s:else><a href="orderList.do?pageNum=<s:property value="backPage"/>">上一页</a></s:else>|
     <s:if test="pageNum>=pageCount">下一页</s:if><s:else><a href="orderList.do?pageNum=<s:property value="nextPage"/>">下一页</a></s:else> |
      <a href="orderList.do?pageNum=<s:property value="pageCount"/>">末 页</a>]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 第
  <select onchange="javascript:window.location='orderList.do?pageNum='+this.value">
    <s:bean name="org.apache.struts2.util.Counter">
    <s:param name="first" value="1" />
    <s:param name="last" value="pageCount"/>
    <s:iterator>
    <option value="<s:property />"
    <s:if test="%{pageNum==(current-1)}">selected="selected"</s:if>>
    <s:property />
    </option>
    </s:iterator>
    </s:bean>
  </select>
    页 &nbsp;共<s:property value="pageCount"/>页   
  </div>

	</div>
</body>
</html>